package request

type TmallServicecenterCallrecordQueryRequest struct {
	/*
	   类型     */
	BizIdentifyType *string `json:"biz_identify_type" required:"true" `
	/*
	   工单id     */
	BizIdentify *string `json:"biz_identify" required:"true" `
	/*
	   当前页数     */
	PageNum *int64 `json:"page_num,omitempty" required:"false" `
	/*
	   每页查询数量     */
	PageSize *int64 `json:"page_size,omitempty" required:"false" `
}

func (s *TmallServicecenterCallrecordQueryRequest) SetBizIdentifyType(v string) *TmallServicecenterCallrecordQueryRequest {
	s.BizIdentifyType = &v
	return s
}
func (s *TmallServicecenterCallrecordQueryRequest) SetBizIdentify(v string) *TmallServicecenterCallrecordQueryRequest {
	s.BizIdentify = &v
	return s
}
func (s *TmallServicecenterCallrecordQueryRequest) SetPageNum(v int64) *TmallServicecenterCallrecordQueryRequest {
	s.PageNum = &v
	return s
}
func (s *TmallServicecenterCallrecordQueryRequest) SetPageSize(v int64) *TmallServicecenterCallrecordQueryRequest {
	s.PageSize = &v
	return s
}

func (req *TmallServicecenterCallrecordQueryRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.BizIdentifyType != nil {
		paramMap["biz_identify_type"] = *req.BizIdentifyType
	}
	if req.BizIdentify != nil {
		paramMap["biz_identify"] = *req.BizIdentify
	}
	if req.PageNum != nil {
		paramMap["page_num"] = *req.PageNum
	}
	if req.PageSize != nil {
		paramMap["page_size"] = *req.PageSize
	}
	return paramMap
}

func (req *TmallServicecenterCallrecordQueryRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
